//
//  DetailViewController.m
//  08-tableView-student
//
//  Created by 王道林 on 16/7/25.
//  Copyright © 2016年 王道林. All rights reserved.
//

#import "DetailViewController.h"

@interface DetailViewController ()

@end

@implementation DetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self createSubView];
}


- (void)createSubView
{
    
    UILabel *lableAge = [[UILabel alloc] initWithFrame:CGRectMake(100, 50, 200, 50)];
    [self.view addSubview:lableAge];
    lableAge.text = [NSString stringWithFormat:@"%@", _dic[@"age"]];
    
    UILabel *lablegender = [[UILabel alloc] initWithFrame:CGRectMake(100, 150, 200, 50)];
    [self.view addSubview:lablegender];
    lablegender.text = _dic[@"gender"];
    
    UILabel *lablename = [[UILabel alloc] initWithFrame:CGRectMake(100, 250, 200, 50)];
    [self.view addSubview:lablename];
    lablename.text = _dic[@"name"];
    
    UILabel *lablephone = [[UILabel alloc] initWithFrame:CGRectMake(100, 350, 200, 50)];
    [self.view addSubview:lablephone];
    lablephone.text = [NSString stringWithFormat:@"%@",_dic[@"phoneNumber"]];
    
    
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
